.class public Lcom/esfile/screen/recorder/ui/b;
.super Landroid/widget/FrameLayout;
.source "DuPopupDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/ui/b$f;,
        Lcom/esfile/screen/recorder/ui/b$h;,
        Lcom/esfile/screen/recorder/ui/b$i;,
        Lcom/esfile/screen/recorder/ui/b$g;,
        Lcom/esfile/screen/recorder/ui/b$j;
    }
.end annotation


# instance fields
.field protected final a:Landroid/view/WindowManager;

.field private b:Landroid/view/WindowManager$LayoutParams;

.field private c:Z

.field private d:Landroid/view/View;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/view/View;

.field private g:Landroid/view/View;

.field private h:Landroid/widget/FrameLayout;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/widget/TextView;

.field private l:Landroid/view/View;

.field private m:Landroid/view/View;

.field private n:Z

.field private o:Lcom/esfile/screen/recorder/ui/b$g;

.field private p:Lcom/esfile/screen/recorder/ui/b$i;

.field private q:Lcom/esfile/screen/recorder/ui/b$h;

.field private r:I

.field private s:Z

.field private t:Landroid/view/View;

.field private u:Lcom/esfile/screen/recorder/ui/b$j;

.field private v:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->c:Z

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/ui/b;->r:I

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/ui/b$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/ui/b$b;-><init>(Lcom/esfile/screen/recorder/ui/b;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->v:Landroid/content/BroadcastReceiver;

    const-string v0, "window"

    .line 5
    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/WindowManager;

    iput-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->a:Landroid/view/WindowManager;

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/ui/b;->h()V

    .line 7
    sget p1, Les/y4;->durec_dialog:I

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/ui/b;->setContentView(I)V

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/ui/b;->g()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/ui/b;)Lcom/esfile/screen/recorder/ui/b$h;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/ui/b;->q:Lcom/esfile/screen/recorder/ui/b$h;

    return-object p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/ui/b;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/ui/b;->s:Z

    return p0
.end method

.method private g()V
    .locals 2

    .line 1
    sget v0, Les/x4;->container:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->d:Landroid/view/View;

    .line 2
    sget v0, Les/x4;->title:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->e:Landroid/widget/TextView;

    .line 3
    sget v0, Les/x4;->title_panel:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->g:Landroid/view/View;

    .line 4
    sget v0, Les/x4;->durec_loading_view:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->t:Landroid/view/View;

    .line 5
    sget v0, Les/x4;->dialog_close:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->f:Landroid/view/View;

    .line 6
    new-instance v1, Lcom/esfile/screen/recorder/ui/b$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/ui/b$a;-><init>(Lcom/esfile/screen/recorder/ui/b;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 7
    sget v0, Les/x4;->message:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->i:Landroid/widget/TextView;

    .line 8
    sget v0, Les/x4;->content_panel:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->h:Landroid/widget/FrameLayout;

    .line 9
    sget v0, Les/x4;->pos_btn:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    .line 10
    sget v0, Les/x4;->neg_btn:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    .line 11
    sget v0, Les/x4;->btn_panel:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->l:Landroid/view/View;

    .line 12
    sget v0, Les/x4;->dugame_quickaction_line:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->m:Landroid/view/View;

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iget v0, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iput v0, p0, Lcom/esfile/screen/recorder/ui/b;->r:I

    return-void
.end method

.method private h()V
    .locals 7

    .line 1
    new-instance v6, Landroid/view/WindowManager$LayoutParams;

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->getWindowType()I

    move-result v3

    const/4 v1, -0x1

    const/4 v2, -0x1

    const/16 v4, 0x102

    const/4 v5, 0x1

    move-object v0, v6

    invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V

    iput-object v6, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    const/high16 v0, 0x3f000000    # 0.5f

    .line 3
    iput v0, v6, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 4
    sget v0, Les/a5;->durec_common_dialog_anim:I

    iput v0, v6, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

    const/16 v0, 0x11

    .line 5
    iput v0, v6, Landroid/view/WindowManager$LayoutParams;->gravity:I

    return-void
.end method

.method private i()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->t:Landroid/view/View;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private j()V
    .locals 3

    .line 1
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.CLOSE_SYSTEM_DIALOGS"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/ui/b;->v:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method private k()V
    .locals 3

    .line 1
    :try_start_0
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/ui/b;->v:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "unregisterHomeKeyReceiver error:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "dpdg"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private setContentView(I)V
    .locals 2

    .line 9
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const/4 v1, 0x0

    .line 10
    invoke-virtual {v0, p1, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/ui/b;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method private setContentView(Landroid/view/View;)V
    .locals 4

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v1, -0x2

    invoke-direct {v0, v1, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 3
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/v4;->durec_common_dialog_out_margin:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 4
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/v4;->durec_common_dialog_out_margin:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    const/4 v3, 0x0

    .line 5
    invoke-virtual {v0, v1, v3, v2, v3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    const/16 v1, 0x11

    .line 6
    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 7
    new-instance v1, Lcom/esfile/screen/recorder/ui/b$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/ui/b$c;-><init>(Lcom/esfile/screen/recorder/ui/b;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 8
    invoke-virtual {p0, p1, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->o:Lcom/esfile/screen/recorder/ui/b$g;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0, p0}, Lcom/esfile/screen/recorder/ui/b$g;->a(Lcom/esfile/screen/recorder/ui/b;)V

    .line 4
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->c()V

    return-void
.end method

.method public a(Ljava/lang/String;Lcom/esfile/screen/recorder/ui/b$h;)V
    .locals 2

    const/4 v0, 0x0

    if-eqz p1, :cond_1

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 6
    iget-object v1, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getVisibility()I

    move-result p1

    if-nez p1, :cond_0

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout$LayoutParams;

    iget v1, p0, Lcom/esfile/screen/recorder/ui/b;->r:I

    iput v1, p1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 9
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->l:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 10
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getVisibility()I

    move-result p1

    if-nez p1, :cond_2

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout$LayoutParams;

    iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    goto :goto_0

    .line 13
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->l:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 14
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    new-instance v0, Lcom/esfile/screen/recorder/ui/b$e;

    invoke-direct {v0, p0, p2}, Lcom/esfile/screen/recorder/ui/b$e;-><init>(Lcom/esfile/screen/recorder/ui/b;Lcom/esfile/screen/recorder/ui/b$h;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->f:Landroid/view/View;

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    const/16 p1, 0x8

    :goto_0
    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method public b()V
    .locals 3

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->d:Landroid/view/View;

    check-cast v0, Landroidx/cardview/widget/CardView;

    const/4 v1, 0x0

    .line 12
    invoke-virtual {v0, v1}, Landroidx/cardview/widget/CardView;->setCardElevation(F)V

    const/4 v2, 0x0

    .line 13
    invoke-virtual {v0, v2}, Landroidx/cardview/widget/CardView;->setPreventCornerOverlap(Z)V

    .line 14
    invoke-virtual {v0, v1}, Landroidx/cardview/widget/CardView;->setRadius(F)V

    .line 15
    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V

    return-void
.end method

.method public b(Ljava/lang/String;Lcom/esfile/screen/recorder/ui/b$h;)V
    .locals 2

    if-eqz p1, :cond_1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    .line 5
    invoke-virtual {v0}, Landroid/widget/TextView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget v0, p0, Lcom/esfile/screen/recorder/ui/b;->r:I

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    iput v0, p1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->l:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    .line 7
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->k:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getVisibility()I

    move-result p1

    if-eqz p1, :cond_2

    .line 9
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->l:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :cond_2
    :goto_1
    if-eqz p2, :cond_3

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->j:Landroid/widget/TextView;

    new-instance v0, Lcom/esfile/screen/recorder/ui/b$d;

    invoke-direct {v0, p0, p2}, Lcom/esfile/screen/recorder/ui/b$d;-><init>(Lcom/esfile/screen/recorder/ui/b;Lcom/esfile/screen/recorder/ui/b$h;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_3
    return-void
.end method

.method public c()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->c:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->c:Z

    .line 3
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->a:Landroid/view/WindowManager;

    invoke-interface {v0, p0}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->p:Lcom/esfile/screen/recorder/ui/b$i;

    if-eqz v0, :cond_0

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->p:Lcom/esfile/screen/recorder/ui/b$i;

    invoke-interface {v0, p0}, Lcom/esfile/screen/recorder/ui/b$i;->a(Lcom/esfile/screen/recorder/ui/b;)V

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->u:Lcom/esfile/screen/recorder/ui/b$j;

    if-eqz v0, :cond_1

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->u:Lcom/esfile/screen/recorder/ui/b$j;

    invoke-interface {v0}, Lcom/esfile/screen/recorder/ui/b$j;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_1
    return-void
.end method

.method public d()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->t:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->u:Lcom/esfile/screen/recorder/ui/b$j;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0}, Lcom/esfile/screen/recorder/ui/b$j;->a()V

    :cond_0
    return-void
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 3

    .line 1
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x4

    if-ne v0, v2, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/ui/b;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->d()V

    return v1

    .line 4
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->n:Z

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    if-ne v0, v2, :cond_1

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->a()V

    return v1

    .line 6
    :cond_1
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public e()V
    .locals 3
    .annotation build Landroidx/annotation/UiThread;
    .end annotation

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->c:Z

    if-eqz v0, :cond_0

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->a:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, p0, v1}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "refresh failed: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "dpdg"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->e(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void
.end method

.method public declared-synchronized f()V
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->c:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->c:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    :try_start_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->a:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, p0, v1}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 4
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 5
    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method protected getWindowType()I
    .locals 2

    .line 1
    invoke-static {}, Les/ic;->a()Les/kc;

    move-result-object v0

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-interface {v0, v1}, Les/kc;->b(Landroid/content/Context;)I

    move-result v0

    return v0
.end method

.method protected onAttachedToWindow()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/ui/b;->j()V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/ui/b;->k()V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 2

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/ui/b;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    return v1

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/ui/b;->n:Z

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    if-nez p1, :cond_1

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->a()V

    :cond_1
    return v1
.end method

.method public setCancelWhenHomeKeyDown(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/ui/b;->s:Z

    return-void
.end method

.method public setCanceledOnTouchOutside(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/ui/b;->n:Z

    return-void
.end method

.method public setDimAmount(F)V
    .locals 1

    const/4 v0, 0x0

    cmpl-float v0, p1, v0

    if-lez v0, :cond_0

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    .line 2
    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->e()V

    :cond_0
    return-void
.end method

.method public setGravity(I)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    .line 2
    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->e()V

    return-void
.end method

.method public setHeight(I)V
    .locals 1

    if-gtz p1, :cond_0

    const/4 v0, -0x1

    if-eq p1, v0, :cond_0

    const/4 v0, -0x2

    if-ne p1, v0, :cond_1

    .line 1
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->d:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    :cond_1
    return-void
.end method

.method public setMessage(I)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/ui/b;->setMessage(Ljava/lang/String;)V

    return-void
.end method

.method public setMessage(Ljava/lang/String;)V
    .locals 2

    if-nez p1, :cond_0

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->i:Landroid/widget/TextView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    return-void

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->i:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->i:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->i:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setOnCancelListener(Lcom/esfile/screen/recorder/ui/b$g;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->o:Lcom/esfile/screen/recorder/ui/b$g;

    return-void
.end method

.method public setOnCloseListener(Lcom/esfile/screen/recorder/ui/b$h;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->q:Lcom/esfile/screen/recorder/ui/b$h;

    return-void
.end method

.method public setOnDismissListener(Lcom/esfile/screen/recorder/ui/b$i;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->p:Lcom/esfile/screen/recorder/ui/b$i;

    return-void
.end method

.method public setTitle(Ljava/lang/String;)V
    .locals 2

    if-nez p1, :cond_0

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/ui/b;->g:Landroid/view/View;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->g:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->g:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->m:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setView(Landroid/view/View;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->i:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->h:Landroid/widget/FrameLayout;

    invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method public setWidth(I)V
    .locals 1

    if-gtz p1, :cond_0

    const/4 v0, -0x1

    if-eq p1, v0, :cond_0

    const/4 v0, -0x2

    if-ne p1, v0, :cond_1

    .line 1
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->d:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    :cond_1
    return-void
.end method

.method public setWindowAnimations(I)V
    .locals 1
    .param p1    # I
        .annotation build Landroidx/annotation/StyleRes;
        .end annotation
    .end param

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    .line 2
    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->e()V

    return-void
.end method

.method public setWindowType(I)V
    .locals 1

    if-lez p1, :cond_0

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/ui/b;->b:Landroid/view/WindowManager$LayoutParams;

    .line 2
    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->type:I

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/ui/b;->e()V

    :cond_0
    return-void
.end method
